package cn.codeforfun.mq;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/2/25.
 */
@Component
public class Receiver {
  @JmsListener(destination = "testQueue")
  public void receive(String text) {
    System.out.println(text);
  }
}
